


/* Main container styling */
.about-us-introduction {
    position: relative; /* Ensures child elements can be positioned relative to this container */
    width: 90%; /* Set the width to 90% of the screen */
    margin: 0 auto; /* Centers the container horizontally */
    height: 90vh; /* Set the height of the section */
    overflow: hidden; /* Prevents overflow of content */
    display: flex; /* Align child elements in the container */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Adds a subtle shadow around the image */
    border-radius: 10px; /* Optional: Adds rounded corners */
    margin-top: 9rem;
}

/* Image section styling */
.images-section img {
    position: absolute; /* Position image in the background */
    top: 0;
    left: 0;
    width: 100%; /* Make the image fit the container's width */
    height: 100%; /* Make the image fit the container's height */
    object-fit: cover; /* Scales the image while maintaining its aspect ratio */
    z-index: 1; /* Place the image behind other elements */
}

/* Overlay styling */
.about-us-overlay {
    position: absolute; /* Position overlay on top of the image */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55); /* Semi-transparent black overlay */
    display: flex; /* Use flexbox for centering text */
    justify-content: center; /* Center text horizontally */
    align-items: center; /* Center text vertically */
    color: white; /* White text for contrast */
    z-index: 2; /* Place overlay above the image */
    font-size: 1.5rem; /* Adjust text size as needed */
    padding: 10px; /* Add padding for better text spacing */
    box-sizing: border-box; /* Ensure padding is included in dimensions */
}

.about-us-overlay .text, .about-us-overlay p, .about-us-overlay h1{
    text-align: left;
    background-color: transparent;
}

.about-us-overlay .text{
    width: 90%;
}

.about-us-overlay h1{
    font-size: 10rem;
}

.about-us-overlay p{
    font-size: 2rem;
}



.core-pillars{
    margin: 2rem;
    margin-top: 3rem;
    position: relative;
}

.core-pillars .core-pillars-container{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.core-pillars .pillar{
    margin: 1rem;
    padding: 2rem;
    border-radius: 2rem;
}

.core-pillars .pillar .title{
    display: grid;
    background-color: transparent;
}

.core-pillars .pillar .title i{
    font-size: 3rem;
    margin: 0;
    background-color: inherit;
    margin-bottom: 1rem;
    overflow-y: hidden;

}

.core-pillars .pillar .title h1{
    font-size: 3rem;
    padding-bottom: 8rem;
    background-color: inherit;
}

.core-pillars .pillar p{
    font-size: 1.5rem;
    font-weight: 400;
    background-color: inherit;
}



.meet-teachers-container{
    margin: 3rem;
    margin-top: 3rem;
}


.meet-teachers-container .title h1{
    font-size: 7rem;
}

.meet-teachers-container .title p{
    font-size: 3rem;
}

.meet-teachers{
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 2rem;
}

.teacher{
    display: grid;
    padding: 1rem;
    border-radius: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a shadow for depth */
}

.teacher .text{
    background-color: inherit;
}

.teacher img{
    margin: auto;
}










/* Image container styling */
.image-container {
    width: 100%;
    text-align: center; /* Center image */
    background-color: inherit;
}

.image-container h1{
    text-align: center;
    margin-top: 1rem;
    background-color: inherit;
}

.image-container img {
    width: 100%; /* Make image responsive */
    height: auto; /* Keep aspect ratio */
    border-radius: 2rem; /* Circle image shape */
    cursor: pointer; /* Indicate interactivity */
}

/* Text box styling */
.text-box {
    position: fixed; /* Position based on the viewport */
    top: 50%; /* Center vertically in the viewport */
    left: 50%; /* Center horizontally in the viewport */
    transform: translate(-100%, -50%) scale(0); /* Initially hidden and scaled down */
    width: 80%; /* Cover most of the screen width */
    max-width: 80%; /* Limit max size */
    height: auto; /* Adjust height dynamically */
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.95); /* Translucent white background */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Add a shadow for depth */
    opacity: 0; /* Fully transparent initially */
    transition: transform 0.5s ease, opacity 0.5s ease; /* Smooth transition for appearance */
    z-index: 99; /* Ensure it appears above other content */

}

.text-box p{
    background-color: inherit;
}

.text-box img{
    height: auto;
    width: 20%;
    border-radius: 2rem;
    display: block;
    margin: auto;
    margin-bottom: 1rem;
}

/* Hover effect on the image */
.image-container:hover + .text-box,
.teacher:hover .text-box {
    transform: translate(-50%, -50%) scale(1); /* Scale up to full size */
    opacity: 1; /* Make visible */
}

@media only screen and (max-width:1100px){
    .about-us-introduction{
        margin-top: 12rem;
    }

    .core-pillars .core-pillars-container{
        grid-template-columns: 1fr 1fr;
    }

    .core-pillars{
        margin: 0;
    }

    .core-pillars .pillar{
        margin: 0.25rem;
    }

    

    .meet-teachers{
        grid-template-columns: 1fr 1fr;
    }
    .meet-teachers .teacher{
        margin-top: 0.5rem;
    }
}

@media only screen and (max-width: 700px) {

    .about-us-introduction{
        margin: 0.25rem;
        width: auto;
        padding: 0;
    }

    .about-us-overlay .text{
        width: 100%;
    }

    .about-us-overlay h1{
        font-size: 3rem;
    }
    
    .about-us-overlay .text p{
        font-size: 1.25rem;
    }
    
    
    .core-pillars-container{
        grid-template-columns: 1fr !important;
        margin: 0;
    }

    .core-pillars{
        margin: 0;
        overflow-y: hidden;

    }

    .pillar{
        margin: 0.25rem !important;
        padding: 1rem;
    }

    .pillar .title h1{
        font-size: 2rem !important;
    }



    .meet-teachers{
        grid-template-columns: 1fr;
    }

    .teacher{
        margin-bottom: 1rem;
    }


    .meet-teachers-container{
        margin: 1rem;
    }


    .meet-teachers-container .title p{
        font-size: 2rem !important;
    }
    .meet-teachers-container .title h1{
        font-size: 5rem !important;
    }

    .text-box{
        bottom: 20%;
        right: 0%;
        overflow-y: scroll;
        height: 50vh;
    }

}


